package common.log.Logger;

public class Logger
{
	private String logName;

	public Logger(String logName)
	{
		this.logName = logName;
	}

	protected void log(String logLevel, String message)
	{
		long time = System.currentTimeMillis();
		String level = logLevel;
		String name = logName;

		String prefix = time + "[" + level + "] " + name + ": ";

		System.out.println(prefix + message);
	}

	public void info(String message)
	{
		log("INFO", message);
	}

	public void debug(String message)
	{
		log("DEBUG", message);
	}

}
